Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Fixes footsteps runtimes, part 2 #871

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#25319
Original PR: tgstation/tgstation#79936

About The Pull Request

tgstation/tgstation#79903 Fixed the most common one, but there are still more of these runtimes it seems.

image

This should take care of all the rest. It turns out that any one of the step types keys in the list returned by prepare_step() can have null values—not just the barefoot one—so we have to check for that in every instance where we read from it.

(Shown here: the list that gets returned. Note that any one of these turf vars can be null, aka these are the values that we need to nullcheck for)

https://github.com/tgstation/tgstation/blob/4a6d2b9297a4919d967f944c6786b801e0034df8/code/datums/elements/footstep.dm#L96

Why It's Good For The Game

Bugfix

Changelog

🆑 vinylspiders
fix: fixed remaining footstep runtimes
/:cl:

* [NO GBP] Fixes footsteps runtimes, part 2 (#79936)

## About The Pull Request

tgstation/tgstation#79903 Fixed the most common
one, but there are still more of these runtimes it seems.

![image](https://github.com/tgstation/tgstation/assets/13398309/3574d756-d6d6-4c0a-84fa-8512f610bf8d)

This should take care of all the rest. It turns out that any one of the
step types keys in the list returned by `prepare_step()` can have `null`
values—not just the barefoot one—so we have to check for that in every
instance where we read from it.

(Shown here: the list that gets returned. Note that any one of these
turf vars can be `null`, aka these are the values that we need to
nullcheck for)

https://github.com/tgstation/tgstation/blob/4a6d2b9297a4919d967f944c6786b801e0034df8/code/datums/elements/footstep.dm#L96

## Why It's Good For The Game

Bugfix

## Changelog

:cl:
fix: fixed remaining footstep runtimes
/:cl:

* [NO GBP] Fixes footsteps runtimes, part 2

---------

Co-authored-by: Bloop <[email protected]>
@Iajret Iajret merged commit 3de9932 into master Nov 29, 2023
24 checks passed
@Iajret Iajret deleted the upstream-mirror-25319 branch November 29, 2023 09:13
AnywayFarus added a commit that referenced this pull request Nov 29, 2023
Iajret pushed a commit that referenced this pull request Feb 9, 2024
* [NoGBP] Fixes Equipment Slowdown (#81352)

## About The Pull Request

Fixes #81350

#81321 wasn't done as tactfully as it should have, resulting in some
oddities like bolas in your pockets giving you slowdown. This PR cleans
up the code and makes it work as intended.

Thanks to Melbert for literally just giving me the code for this. I did
test it and added proc comments so I can guarantee everything works.

## Why It's Good For The Game

You shouldn't be slowed down from a bola in your pocket, and this logic
is much nicer than what we had before.

## Changelog
:cl:
fix: Bolas in your pockets no longer slow you down.
/:cl:

* [NoGBP] Fixes Equipment Slowdown

---------

Co-authored-by: IndieanaJones <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants